/******************************************************************************
 * FILE NAME:
 *  tp_types.h
 *
 * DESCRIPTION:
 * This file contains the function declarations for all handle message_queue
 * of application_layer
 *
 * DESIGN REFERENCE:
 *
 *
 * REVISION HISTORY   :
 * Date            Author               REASON
 * 06.08.2013      Thuan Nguyen         Creation
 *
 * Copyright 2005, NET
 * ***************************************************************************/

#include"../../common/h/common_def.h"
#include"../h/app_types.h"
/***********************************************************************
 * FUNCTION NAME:
 *  app_create_output_queues_func
 *
 * DESCRIPTION:
 *	This function will create the message_queue for APPLICATION_OUTPUT_MQUEUE
 * INPUT:
 *	request_msg_t *req_msg
 * OUTPUT:
 *
 * RETURN:
 *	val_result
 * GLOBAL DATA REFERRED:
 *
 * CALLED ROUTINES:
 *
 * NOTES:
 *
 ************************************************************************/
U8 app_create_output_queues_func()
{
	U8 val_result = SYSLOG_TRUE;
	U32 msgid;
	val_result = msgget((key_t)APPLICATION_OUTPUT_MQUEUE, 0666 | IPC_CREAT);
	if( SYSLOG_FAILURE == val_result){
		val_result = SYSLOG_FALSE;
	}
	else
	{
		SYSLOG_APPLICATION_INFO_LOGGING("APPLICATION_OUTPUT_MQUEUE: Created");
	}
	return val_result;
}
